import Vue from 'vue';
import Vuex from 'vuex';
import app from './modules/app';
import login from './modules/login';


// import { asyncRouterMap, asyncRouterMaps } from '../router/index';
Vue.use(Vuex);

const store = new Vuex.Store({
    state: {
        ossBucket: process.env.NODE_ENV === 'production' ? 'sinostorage' : 'sinostoragedev',
    },
    mutations: {
        judgeDomain: (state, data) => {
            // if (window.location.hostname.indexOf("jfry") > -1) {
            //     state.ossBucket = "sinostorage"
            // } else {
            //     state.ossBucket = "sinostoragedev"
            // }

        },
   
    },
    actions: {

    },
    modules: {
        app,
        login,
    }
});

export default store;
